import QtQuick 2.15
import QtQuick.Controls
import QtQuick.Layouts

Rectangle {
    id: chartsPage
    anchors.fill: parent

    Rectangle {
        id: chartsPageHeaderView
        anchors.left: parent.left
        anchors.top: parent.top
        anchors.right: parent.right
        height: 250
        color: "#424852"

        RowLayout {

            anchors.centerIn: parent
            spacing: 15

            Text {
                id: text1
                width: 120
                height: 250
                text: qsTr("今日收益")
                font.pixelSize: 20
                horizontalAlignment: Text.AlignHCenter
                verticalAlignment: Text.AlignVCenter
            }

            Text {
                id: text2
                width: 120
                height: 250
                horizontalAlignment: Text.AlignHCenter
                verticalAlignment: Text.AlignVCenter
                text: qsTr("280")
                font.pixelSize: 60
            }

            Text {
                id: text3
                width: 120
                height: 250
                horizontalAlignment: Text.AlignHCenter
                verticalAlignment: Text.AlignVCenter
                text: qsTr("当月累计收益")
                font.pixelSize: 20
            }

            Text {
                id: text4

                width: 120
                height: 250
                horizontalAlignment: Text.AlignHCenter
                verticalAlignment: Text.AlignVCenter
                text: qsTr("10000")
                font.pixelSize: 60
            }
        }



    }

    ChartsStackView {
        anchors.top: chartsPageHeaderView.bottom
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: parent.bottom
    }
}

/*##^##
Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
